//
//  FLPrivacyAlertView.h
//  Cat
//
//  Created by lushitong on 2018/12/23.
//  Copyright © 2018年 lushitong. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FLPrivacyAlertView : UIView

+ (instancetype)showInView:(UIView *)superView
	clickAgreeButtonAction:(void (^)(FLPrivacyAlertView *view))clickAgreeButtonAction
	   clickDisAgreeAction:(void (^)(void))clickDisAgressAction;

/**
 隐私协议的action
 
 @param superView 加载到某个视图之上
 @param addressURL 地址
 @param clickAgreeButtonAction 同意的action
 @param clickDisAgressAction 不同意的action
 @return 返回
 */
+ (instancetype)showInView:(UIView *)superView
		   loadHtmlAddress:(NSString *)addressURL
	clickAgreeButtonAction:(void(^)(FLPrivacyAlertView *view))clickAgreeButtonAction
	   clickDisAgreeAction:(void(^)(void))clickDisAgressAction;

- (void)dismiss;


@end

NS_ASSUME_NONNULL_END
